package com.ittony.model.system;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ittony.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "Role")
@TableName("sys_role")
public class SysRole extends BaseEntity {

    private static final long serialVersionUID = 1L;

    //NotBlank(message = "RoleName is not null")
    @ApiModelProperty(value = "RoleName")
    @TableField("role_name")
    private String roleName;

    @ApiModelProperty(value = "RoleCode")
    @TableField("role_code")
    private String roleCode;

    @ApiModelProperty(value = "Description")
    @TableField("description")
    private String description;
}
